<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息展示页面</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f7f6;
            margin: 0;
            padding: 0;
        }
        .container {
            width: 80%;
            margin: 0 auto;
            padding: 20px;
        }
        h1 {
            text-align: center;
            color: #333;
        }
        .message-card {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 20px 0;
            padding: 30px;
            display: flex;
            align-items: center;
            transition: transform 0.3s ease;
        }
        .message-card:hover {
            transform: translateY(-10px);
        }
        .message-info {
            flex-grow: 1;
        }
        .message-info h2 {
            margin: 0;
            font-size: 24px;
            color: #333;
        }
        .message-info p {
            margin: 10px 0;
            font-size: 18px;
            color: #777;
        }
        .button {
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 20px;
            transition: background-color 0.3s;
        }
        .button:hover {
            background-color: #0056b3;
        }
        .footer {
            text-align: center;
            margin-top: 40px;
            color: #888;
        }
    </style>
</head>
<body>

<div class="container">
    <h1>消息展示页面</h1>

    <!-- 消息显示卡片 -->
    <div class="message-card">
        <div class="message-info">
            <h2>消息：</h2>
            <p>${requestScope.message}</p><%--可以显示Request域中的数据 --%>
            <button class="button" onclick="alert('你已看到消息！')">点击我</button>
        </div>
    </div>

    <!-- 底部版权信息 -->
    <div class="footer">
        <p>© 2025 消息展示系统</p>
    </div>
</div>

</body>
</html>



